﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.Web.Api.Entities.Entity
{
    /// <summary>
    /// 结果字段配置
    /// </summary>
    public class Api_field : EtyBase
    {
        /// <summary>
        /// 方法ID
        /// </summary>
        public int? ActionID { get; set; }
        /// <summary>
        /// 字段原名
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 字段别名（备注名）
        /// </summary>
        public string FieldNiceName { get; set; }
        /// <summary>
        /// 字段装换名
        /// </summary>
        public string FieldEscapeName { get; set; }
        /// <summary>
        /// 拓展字段存在类型：1新增字段、0数据源字段
        /// </summary>
        public int? FieldClass { get; set; }
        /// <summary>
        /// 换源代码
        /// </summary>
        public string ConvertCode { get; set; }
        /// <summary>
        /// 格式化代码
        /// </summary>
        public string FieldFormat { get; set; }
        /// <summary>
        /// 是否绑定
        /// </summary>
        public int? IsBinding { get; set; }
        /// <summary>
        /// 字段类型：1数字型、2字符型、3日期型、4逻辑型
        /// </summary>
        public int? FieldDataType { get; set; }
        /// <summary>
        /// 字段换源类型：1select匹配、2宏匹配
        /// </summary>
        public int? FieldEscapeType { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Describe { get; set; }


    }
}
